<?php 
/*
Template Name: Honor
*/
get_header();
$this_is_page=true;
?>

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/map/FusionMaps.js"></script>

 <div class="container1">
	 	   <div class="AboutSubmenu">
		   	<ul>
				
				<li class="Home"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/homebutton.png" /></a></li>
				
                             <?php   
                            if($post->post_parent) {
                              $children = wp_list_pages("title_li=&child_of=359&depth=1&echo=0");
                              $titlenamer = get_the_title($post->post_parent);
                              }
                              else {
                              $children = wp_list_pages("title_li=&child_of=".$post->ID."&depth=1&echo=0");
                              $titlenamer = get_the_title($post->ID);
                              }
                             ?>
                                <li class="TitleButton"><?php echo $titlenamer; ?></li>
                              <?php
                              if ($children) { ?>
                              <?php echo $children; ?>
                             <?php } ?>
				<li class="Image"><img src="<?php bloginfo('template_url'); ?>/images/wordsimage.png" /></li>
			</ul>
			
			
		   </div>
	   
		   <div class="contentSub">
		     <div class="titlePic">
			 	<img src="<?php bloginfo('template_url'); ?>/images/companyhonor.jpg" /></div>
			  <div class="contentBody">
			  	<div class="AboutComWordscontent"> 
                                     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
				  <div class="honorArrow">
				  <ul>
                                      <?php 
                                        for($i = 2006; $i<=2012;$i++){
                                             $page = get_page_by_title( $i."" );
                                      ?>
                                      <li><a href="<?php echo get_permalink($page->ID); ?>"><img src="<?php bloginfo('template_url'); ?>/images/flash<?php echo $i ?>.png" /></a></li>
                                      
                                      <?php } ?>
                                       <li><img src="<?php bloginfo('template_url'); ?>/images/flashnav.png" /></li>
                          </ul>
                                  </div>
				  <div class="AboutComWordscontentsecond">
				  	 <?php the_content(); ?>
				  </div>
				 	<?php endwhile; else: ?>
					<div class="Title">
					<h4>错误</h4>
					</div>
				  <div>
				  	对不起没有你要的内容
				  </div>
                                <?php endif; ?>
				</div>
			 
			 </div>
			  <div class="pageBottomPic"></div>
			 </div>
		   </div>
     
     
		 </div>


	
<?php get_footer(); ?>
